Optimal. Leaf size=205 \[ -\frac {2 a (5 A+3 C) \sqrt {\cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{5 d}+\frac {2 a (7 A+5 C) \sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{21 d}+\frac {2 a (5 A+3 C) \sqrt {\sec (c+d x)} \sin (c+d x)}{5 d}+\frac {2 a (7 A+5 C) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{21 d}+\frac {2 a C \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{5 d}+\frac {2 a C \sec ^{\frac {7}{2}}(c+d x) \sin (c+d x)}{7 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.16, antiderivative size = 205, normalized size of antiderivative = 1.00, number of steps
used = 9, number of rules used = 7, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.212, Rules used = {4162, 4132,
3853, 3856, 2720, 4131, 2719} \begin {gather*} \frac {2 a (7 A+5 C) \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x)}{21 d}+\frac {2 a (5 A+3 C) \sin (c+d x) \sqrt {\sec (c+d x)}}{5 d}+\frac {2 a (7 A+5 C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{21 d}-\frac {2 a (5 A+3 C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 d}+\frac {2 a C \sin (c+d x) \sec ^{\frac {7}{2}}(c+d x)}{7 d}+\frac {2 a C \sin (c+d x) \sec ^{\frac {5}{2}}(c+d x)}{5 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2719
Rule 2720
Rule 3853
Rule 3856
Rule 4131
Rule 4132
Rule 4162
Rubi steps
\begin {align*} \int \sec ^{\frac {3}{2}}(c+d x) (a+a \sec (c+d x)) \left (A+C \sec ^2(c+d x)\right ) \, dx &=\frac {2 a C \sec ^{\frac {7}{2}}(c+d x) \sin (c+d x)}{7 d}+\frac {2}{7} \int \sec ^{\frac {3}{2}}(c+d x) \left (\frac {7 a A}{2}+\frac {1}{2} a (7 A+5 C) \sec (c+d x)+\frac {7}{2} a C \sec ^2(c+d x)\right ) \, dx\\ &=\frac {2 a C \sec ^{\frac {7}{2}}(c+d x) \sin (c+d x)}{7 d}+\frac {2}{7} \int \sec ^{\frac {3}{2}}(c+d x) \left (\frac {7 a A}{2}+\frac {7}{2} a C \sec ^2(c+d x)\right ) \, dx+\frac {1}{7} (a (7 A+5 C)) \int \sec ^{\frac {5}{2}}(c+d x) \, dx\\ &=\frac {2 a (7 A+5 C) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{21 d}+\frac {2 a C \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{5 d}+\frac {2 a C \sec ^{\frac {7}{2}}(c+d x) \sin (c+d x)}{7 d}+\frac {1}{5} (a (5 A+3 C)) \int \sec ^{\frac {3}{2}}(c+d x) \, dx+\frac {1}{21} (a (7 A+5 C)) \int \sqrt {\sec (c+d x)} \, dx\\ &=\frac {2 a (5 A+3 C) \sqrt {\sec (c+d x)} \sin (c+d x)}{5 d}+\frac {2 a (7 A+5 C) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{21 d}+\frac {2 a C \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{5 d}+\frac {2 a C \sec ^{\frac {7}{2}}(c+d x) \sin (c+d x)}{7 d}-\frac {1}{5} (a (5 A+3 C)) \int \frac {1}{\sqrt {\sec (c+d x)}} \, dx+\frac {1}{21} \left (a (7 A+5 C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx\\ &=\frac {2 a (7 A+5 C) \sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{21 d}+\frac {2 a (5 A+3 C) \sqrt {\sec (c+d x)} \sin (c+d x)}{5 d}+\frac {2 a (7 A+5 C) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{21 d}+\frac {2 a C \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{5 d}+\frac {2 a C \sec ^{\frac {7}{2}}(c+d x) \sin (c+d x)}{7 d}-\frac {1}{5} \left (a (5 A+3 C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \sqrt {\cos (c+d x)} \, dx\\ &=-\frac {2 a (5 A+3 C) \sqrt {\cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{5 d}+\frac {2 a (7 A+5 C) \sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{21 d}+\frac {2 a (5 A+3 C) \sqrt {\sec (c+d x)} \sin (c+d x)}{5 d}+\frac {2 a (7 A+5 C) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{21 d}+\frac {2 a C \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{5 d}+\frac {2 a C \sec ^{\frac {7}{2}}(c+d x) \sin (c+d x)}{7 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 4 in
optimal.
time = 4.78, size = 409, normalized size = 2.00 \begin {gather*} \frac {2 a e^{-i d x} \cos ^2(c+d x) \csc (c) \left (A+C \sec ^2(c+d x)\right ) \left (7 \sqrt {2} (5 A+3 C) e^{2 i d x} \left (-1+e^{2 i c}\right ) \sqrt {\frac {e^{i (c+d x)}}{1+e^{2 i (c+d x)}}} \sqrt {1+e^{2 i (c+d x)}} \, _2F_1\left (\frac {1}{2},\frac {3}{4};\frac {7}{4};-e^{2 i (c+d x)}\right )-\frac {e^{-i (c-d x)} \left (-1+e^{2 i c}\right ) \left (35 A \left (1+e^{2 i (c+d x)}\right )^2 \left (-1+3 e^{i (c+d x)}+e^{2 i (c+d x)}+3 e^{3 i (c+d x)}\right )+C \left (-25+21 e^{i (c+d x)}-85 e^{2 i (c+d x)}+189 e^{3 i (c+d x)}+85 e^{4 i (c+d x)}+231 e^{5 i (c+d x)}+25 e^{6 i (c+d x)}+63 e^{7 i (c+d x)}\right )\right ) \sqrt {\sec (c+d x)}}{\left (1+e^{2 i (c+d x)}\right )^3}+10 (7 A+5 C) e^{i d x} \sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)} \sin (c)\right )}{105 d (A+2 C+A \cos (2 (c+d x)))} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(810\) vs.
\(2(229)=458\).
time = 10.63, size = 811, normalized size = 3.96
method | result | size |
default | \(\text {Expression too large to display}\) | \(811\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 0.37, size = 243, normalized size = 1.19 \begin {gather*} \frac {-5 i \, \sqrt {2} {\left (7 \, A + 5 \, C\right )} a \cos \left (d x + c\right )^{3} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right ) + 5 i \, \sqrt {2} {\left (7 \, A + 5 \, C\right )} a \cos \left (d x + c\right )^{3} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right ) - 21 i \, \sqrt {2} {\left (5 \, A + 3 \, C\right )} a \cos \left (d x + c\right )^{3} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right )\right ) + 21 i \, \sqrt {2} {\left (5 \, A + 3 \, C\right )} a \cos \left (d x + c\right )^{3} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right )\right ) + \frac {2 \, {\left (21 \, {\left (5 \, A + 3 \, C\right )} a \cos \left (d x + c\right )^{3} + 5 \, {\left (7 \, A + 5 \, C\right )} a \cos \left (d x + c\right )^{2} + 21 \, C a \cos \left (d x + c\right ) + 15 \, C a\right )} \sin \left (d x + c\right )}{\sqrt {\cos \left (d x + c\right )}}}{105 \, d \cos \left (d x + c\right )^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \left (A+\frac {C}{{\cos \left (c+d\,x\right )}^2}\right )\,\left (a+\frac {a}{\cos \left (c+d\,x\right )}\right )\,{\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{3/2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________